// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueLazyComponent from '@xunlei/vue-lazy-component' //https://www.npmjs.com/package/@xunlei/vue-lazy-component |npm install @xunlei/vue-lazy-component --save| |Vue.use(VueLazyComponent)|
// 导入 muse-ui 组件
import MuseUI from 'muse-ui'
import 'muse-ui/dist/muse-ui.css'
import 'muse-ui/dist/theme-light.css'

import App from './App'
import router from './router'

import store from '@/store/store.js'

Vue.use(VueLazyComponent)
Vue.use(MuseUI)

Vue.config.productionTip = false

Vue.filter('arr2string', value => value.join(' / '));
Vue.filter('fixNum', num => (num ? (Number(num).toFixed(1)) : '暂无评分'));

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  template: '<App/>',
  components: { App }
})
